package cn.kgc.thirdtest.service;

import cn.kgc.thirdtest.mapper.PeitemsMapper;
import cn.kgc.thirdtest.pojo.Peitems;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class PeitemsServiceImp implements PeitemsService {
    @Resource
    private PeitemsMapper peitemsMapper;
    @Override
    public List<Peitems> getPeitemListByTypeid(String typeid) {
        return peitemsMapper.getPeitemsListByTypeid(typeid);
    }

    @Override
    public Peitems getPeitemByItemid(String itemid) {
        return peitemsMapper.getPeitemById(itemid);
    }

    @Override
    public int updatePeitemById(Peitems peitems) {
        return peitemsMapper.updatePeitem(peitems);
    }
}
